//
//  ALPView.m
//  AlpFM
//
//  Created by dllo on 16/1/26.
//  Copyright © 2016年 Alp. All rights reserved.
//

#import "ALPView.h"
#import "ALPThreeFocusImageModel.h"
#import "LunBoTu.h"

@implementation ALPView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
    }
    return self;
}

-(void)setArray:(NSMutableArray *)array{
    _array = array;
    NSMutableArray *array1 = [NSMutableArray array];
    for (int i = 0; i < _array.count; i++) {
        ALPThreeFocusImageModel *mol = _array[i];
        [array1 addObject:mol.pic];
    }
    LunBoTu *lun = [[LunBoTu alloc]init];
    lun.time = 4;
    [lun imageWithUrlArray:array1 frame:self.bounds];
    [self addSubview:[lun collectionView]];
    [self addSubview:[lun pageControl]];
    
}
@end
